package com.mcxx.modules.temporary.salary.service.read;

import com.mcxx.modules.temporary.family.dto.TemMemberAndSalaryDTO;
import com.mcxx.modules.temporary.salary.entity.TmpMemberSalaryEntity;
import com.mcxx.modules.temporary.salary.dao.read.TmpMemberSalaryReadDao;
import com.yinhai.ta404.core.transaction.annotation.TaTransactional;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
@TaTransactional(readOnly = true)
public class TmpMemberSalaryReadService {

    @Autowired
    private TmpMemberSalaryReadDao tmpMemberSalaryReadDao;


    public List<TmpMemberSalaryEntity> listAll() {
    	return tmpMemberSalaryReadDao.listAll();
    }


    public List<TemMemberAndSalaryDTO> getMemberListByFamilyId(String orderId, String familyId) {
    	return tmpMemberSalaryReadDao.getMemberListByFamilyId(orderId, familyId);
    }



    public TmpMemberSalaryEntity getById(String id) {
    	return tmpMemberSalaryReadDao.getById(id);
    }

}
